package com.kurumi.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.kurumi.pojo.ScanImage;
import com.kurumi.pojo.upload.UploadThirdScan;
import com.kurumi.pojo.upload.UploadThirdScanFile;
import com.kurumi.query.UploadScanQuery;

public interface UploadThirdScanMapper {
	
	int insertUploadThirdScan(UploadThirdScan record);
	
	int insertUploadThirdScanFile(UploadThirdScanFile record);
	
	int insertScanImage(ScanImage record);
	
	ScanImage getScanImageByFileHash(@Param("fileHash") String fileHash);
	
	/**
	 * 获取第三方文件上传
	 * @return
	 */
	List<Map<String,Object>> getUploadThirdScanByQuery(UploadScanQuery query);
	
	/**
	 * 获取第三方文件上传数量
	 * @return
	 */
	int getUploadThirdScanCountByQuery(UploadScanQuery query);
	
	List<String> getFileHashByUploadScanId(@Param("uploadScanId")Integer uploadScanId);
	
	UploadThirdScan getUploadThirdScanByPrimaryKey(Integer id);
	
	int updateUploadThirdScanOfVisitGuidByPrimaryKey(@Param("id")Integer id,@Param("visitGuid")String visitGuid);
}
